package com.ffzs.webflux.r2mongo_test.models;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author: ffzs
 * @Date: 2020/8/11 上午9:15
 */
@Data
@Document(collection = "student")  // mongodb映射表
@NoArgsConstructor
@AllArgsConstructor
@Builder
@With
public class Student {

    @Id
    private Long id;
    private String stuNum;
    private String name;
    private String sex;
    private Integer age;
    private String className;
    private String idNum;

    /**
     * email
     */
    private String email;
}
